<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'upload2.jsp' starting page</title>
  </head>
  <body>

<form action="/struts2/UploadServlet" method="post" enctype="multipart/form-data"> 
用户名：<input name="username" type="text"/><br>
密码：<input name="password" type="password"/><br>
文件1：<input type="file" name="file1"/><br>
文件2：<input type="file" name="file2"/><br>
<input type="submit" value="提交"/>
</form>

  </body>
</html>
